#!/bin/rc

pattern='/umuldiv/d
	/rune routines/,/^\/\*/d
	/print routines/,/^\/\*/d
	/error string for/,/^\/\*/d'

sed -e $pattern /sys/include/libc.h | awk '/^enum/ && !n++, /^};/ {next}1'
